<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>testStep</title>
<link href="${pageContext.request.contextPath}/thirdparty/zui/css/zui.min.css" rel="stylesheet">
<style type="text/css">
	.div-hidden {
		display: none;
	}
</style>
</head>
<body>
	<script type="text/javascript">
		var ctx = "${pageContext.request.contextPath}";
		var url_spe = {};
		url_spe['Dev'] = {
			'Rest': "${RESTURL_DEV}",
			'Soap': "${WSURL_DEV}"
		};
		url_spe['Uat'] = {
			'Rest': "${RESTURL_UAT}",
			'Soap': "${WSURL_UAT}"
		};
		url_spe['Prd'] = {
			'Rest': "${RESTURL_PRD}",
			'Soap': "${WSURL_PRD}"
		};
		//
	</script>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-2">
				<h1>OpenApi</h1>
			</div>
			<div class="col-md-5">
				<h3>
				<select id="id_select" style="width:280px;">
					<option value="-1">请选择</option>
				</select>
				</h3>
			</div>
			<div class="col-md-5">
				<h3>
				<input type="radio" name="env_radio" checked="checked" value="Dev">Dev <!-- 
				--><input type="radio" name="env_radio" value="Uat">Uat <!-- 
				--><input type="radio" name="env_radio" value="Prd">Prd
				</h3>
			</div>
		</div>
	</div>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-6">
				<form class="form-horizontal" id="form1">
					<input type="hidden" id="id_hidden_env" name="env" value="Dev">
					<div class="form-group">
						<div class="col-md-5 col-md-offset-2">
							<!-- <select class="chosen-container chosen-container-single chosen-with-drop chosen-container-active"
								data-placeholder="Select Your Options">
								<option value="1">Option 1</option>
								<option value="2" selected>Option 2</option>
								<option value="3" disabled>Option 3</option>
							</select> -->
							<input type="radio" name="reqType" checked="checked" value="Rest">Rest <!-- 
							  --><input type="radio" name="reqType" value="Soap">Soap
							<!-- <div class="btn-group">
								<button type="button" class="btn">Rest</button>
								<button type="button" class="btn">Soap</button>
							</div> -->
						</div>
						<div class="col-md-3 col-md-offset-2">
							<input type="radio" name="Format_aa" checked="checked" value="json">json <!-- 
							  --><input type="radio" name="Format_aa" value="xml">xml
						</div>
					</div>
				
					<div class="form-group">
						<label class="col-md-2">appAppSecret</label>
						<div class="col-md-5">
							 <input type="text" class="form-control" id="id_appAppSecret" name="appAppSecret" placeholder="">
						</div>
						<label class="col-md-2">Sign_Method</label>
						<div class="col-md-3"><!-- "",MD5,RSA -->
							<input type="radio" name="signMethod" checked="checked" value=" ">无 <!-- 
							  --><input type="radio" name="signMethod" value="MD5">MD5<!-- 
							   --><input type="radio" name="signMethod" value="RSA">RSA
						</div>
					</div>
				
					<div class="form-group">
						<label class="col-md-2">OpenApi地址</label>
						<div class="col-md-5">
							 <p class="form-control-static" id="id_url">http://10.0.231.11/openapi/rs-service/</p>
							 <input type="hidden" id="id_hidden_url" name="url" value="http://10.0.231.11/openapi/rs-service/">
						</div>
						<label class="col-md-2">Time_Stamp</label>
						<div class="col-md-3">
							 <p class="form-control-static" id="id_Time_Stamp"></p>
							 <input type="hidden" id="id_hidden_Time_Stamp" name="timeStamp" value="">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2">Api_ID</label>
						<div class="col-md-5">
							<input type="text" class="form-control" id="id_apiId" name="apiId" placeholder="">
						</div>
						<label class="col-md-2">Api_Version</label>
						<div class="col-md-3">
							<input type="text" class="form-control" id="id_apiVersion" name="apiVersion" placeholder="">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2">App_Sub_ID</label>
						<div class="col-md-5">
							<input type="text" class="form-control" id="id_appSubId" name="appSubId" placeholder="">
						</div>
						<!-- <div class="col-md-2">
							<button id="btn_load" type="button" class="btn btn-default">载入</button>
						</div> -->
						<label class="col-md-2">Partner_ID</label>
						<div class="col-md-3">
							<input type="text" class="form-control" id="id_partnerId" name="partnerId" placeholder="">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2">App_Pub_ID</label>
						<div class="col-md-5">
							<input type="text" class="form-control" id="id_appPubId" name="appPubId" placeholder="">
						</div>
						<label class="col-md-2">Sys_ID</label>
						<div class="col-md-3">
							<input type="text" class="form-control" id="id_sysId" name="sysId" placeholder="">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2">App_Token</label>
						<div class="col-md-5">
							<input type="text" class="form-control" id="id_appToken" name="appToken" placeholder="">
						</div>
						<label class="col-md-2">Format</label>
						<div class="col-md-3">
							<p class="form-control-static" id="id_Format">json</p>
							<input type="hidden" name="format" id="id_hidden_Format" value="json">
						</div>
					</div>
					<div id="div_privateKey" class="form-group div-hidden">
						<label class="col-md-2">私钥</label>
						<div class="col-md-10">
							<textarea id="id_privateKey" name="privateKey" class="form-control" rows="3"></textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2">报文参数</label>
						<div class="col-md-10">
							<textarea id="id_reqdata" name="reqdata" class="form-control" rows="6"></textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-4 col-md-offset-2">
							<button id="btn_submit" type="button" class="btn btn-default">提交</button>
						</div>
					</div>
				</form>
			</div><!-- Left end -->
			<div class="col-md-6">
				<form class="form-horizontal" id="form2">
				
					<!-- <div class="form-group">
						<div class="col-md-3 col-md-offset-2">
							<button id="btn_load" type="button" class="btn btn-default">载入</button>
						</div>
					</div> -->
					<div class="form-group">
						<label class="col-md-2">请求报文</label>
						<div class="col-md-10">
							<textarea id="id_reqParam" class="form-control" rows="8"></textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2">响应报文</label>
						<div class="col-md-10">
							<textarea id="id_respResult" class="form-control" rows="12"></textarea>
						</div>
					</div>
				</form>
			</div><!-- Rigth end -->
		</div>
	</div>
	<script type="text/javascript" src="${pageContext.request.contextPath}/thirdparty/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/thirdparty/zui/js/zui.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/thirdparty/moment.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/testStep.js?t=<%=new java.util.Date().getTime()%>"></script>
</body>
</html>
